home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 1.iso
/
dist
/
fw_curl.idb
/
usr
/
freeware
/
catman
/
p_man
/
cat3
/
curl_easy_getinfo.Z
/
curl_easy_getinfo
Wrap
Text File
|
2002-07-08
|
7KB
|
159 lines
curl_easy_init(3) libcurl Manual curl_easy_init(3)
NNAAMMEE
curl_easy_getinfo - Extract information from a curl ses
sion (added in 7.4)
SSYYNNOOPPSSIISS
##iinncclluuddee <<ccuurrll//ccuurrll..hh>>
CCUURRLLccooddee ccuurrll__eeaassyy__ggeettiinnffoo((CCUURRLL **ccuurrll,, CCUURRLLIINNFFOO iinnffoo,, ......
));;
DDEESSCCRRIIPPTTIIOONN
Request internal information from the curl session with
this function. The third argument MMUUSSTT be a pointer to a
long, a pointer to a char * or a pointer to a double (as
this documentation describes further down). The data
pointed-to will be filled in accordingly and can be relied
upon only if the function returns CURLE_OK. This function
is intended to get used *AFTER* a performed transfer, all
results from this function are undefined until the trans
fer is completed.
AAVVAAIILLAABBLLEE IINNFFOORRMMAATTIIOONN
These are informations that can be extracted:
CCUURRLLIINNFFOO__EEFFFFEECCTTIIVVEE__UURRLL
Pass a pointer to a 'char *' to receive the last
used effective URL.
CCUURRLLIINNFFOO__HHTTTTPP__CCOODDEE
Pass a pointer to a long to receive the last
received HTTP code.
CCUURRLLIINNFFOO__FFIILLEETTIIMMEE
Pass a pointer to a long to receive the remote
time of the retrieved document. If you get -1, it
can be because of many reasons (unknown, the
server hides it or the server doesn't support the
command that tells document time etc) and the time
of the document is unknown. Note that you must
tell the server to collect this information before
the transfer is made, by using the CURLOPT_FILE
TIME option to _c_u_r_l___e_a_s_y___s_e_t_o_p_t_(_3_). (Added in 7.5)
CCUURRLLIINNFFOO__TTOOTTAALL__TTIIMMEE
Pass a pointer to a double to receive the total
transaction time in seconds for the previous
transfer. This time does not include the connect
time, so if you want the complete operation time,
you should add the CURLINFO_CONNECT_TIME.
CCUURRLLIINNFFOO__NNAAMMEELLOOOOKKUUPP__TTIIMMEE
Pass a pointer to a double to receive the time, in
seconds, it took from the start until the name
resolving was completed.
CCUURRLLIINNFFOO__CCOONNNNEECCTT__TTIIMMEE
Pass a pointer to a double to receive the time, in
seconds, it took from the start until the connect
to the remote host (or proxy) was completed.
CCUURRLLIINNFFOO__PPRREETTRRAANNSSFFEERR__TTIIMMEE
Pass a pointer to a double to receive the time, in
seconds, it took from the start until the file
transfer is just about to begin. This includes all
pre-transfer commands and negotiations that are
specific to the particular protocol(s) involved.
CCUURRLLIINNFFOO__SSTTAARRTTTTRRAANNSSFFEERR__TTIIMMEE
Pass a pointer to a double to receive the time, in
seconds, it took from the start until the first
byte is just about to be transfered. This includes
CURLINFO_PRETRANSFER_TIME and also the time the
server needs to calculate the result.
CCUURRLLIINNFFOO__RREEDDIIRREECCTT__TTIIMMEE
Pass a pointer to a double to receive the total
time, in seconds, it took for all redirection
steps include name lookup, connect, pretransfer
and transfer before final transaction was started.
CURLINFO_REDIRECT_TIME contains the complete exe
cution time for multiple redirections. (Added in
7.9.7)
CCUURRLLIINNFFOO__RREEDDIIRREECCTT__CCOOUUNNTT
Pass a pointer to a long to receive the total num
ber of redirections that were actually followed.
(Added in 7.9.7)
CCUURRLLIINNFFOO__SSIIZZEE__UUPPLLOOAADD
Pass a pointer to a double to receive the total
amount of bytes that were uploaded.
CCUURRLLIINNFFOO__SSIIZZEE__DDOOWWNNLLOOAADD
Pass a pointer to a double to receive the total
amount of bytes that were downloaded.
CCUURRLLIINNFFOO__SSPPEEEEDD__DDOOWWNNLLOOAADD
Pass a pointer to a double to receive the average
download speed that curl measured for the complete
download.
CCUURRLLIINNFFOO__SSPPEEEEDD__UUPPLLOOAADD
Pass a pointer to a double to receive the average
upload speed that curl measured for the complete
upload.
CCUURRLLIINNFFOO__HHEEAADDEERR__SSIIZZEE
Pass a pointer to a long to receive the total size
of all the headers received.
CCUURRLLIINNFFOO__RREEQQUUEESSTT__SSIIZZEE
Pass a pointer to a long to receive the total size
of the issued requests. This is so far only for
HTTP requests. Note that this may be more than one
request if FOLLOWLOCATION is true.
CCUURRLLIINNFFOO__SSSSLL__VVEERRIIFFYYRREESSUULLTT
Pass a pointer to a long to receive the result of
the certification verification that was requested
(using the CURLOPT_SSL_VERIFYPEER option to
curl_easy_setopt). (Added in 7.4.2)
CCUURRLLIINNFFOO__CCOONNTTEENNTT__LLEENNGGTTHH__DDOOWWNNLLOOAADD
Pass a pointer to a double to receive the content-
length of the download. This is the value read
from the Content-Length: field. (Added in 7.6.1)
CCUURRLLIINNFFOO__CCOONNTTEENNTT__LLEENNGGTTHH__UUPPLLOOAADD
Pass a pointer to a double to receive the speci
fied size of the upload. (Added in 7.6.1)
CCUURRLLIINNFFOO__CCOONNTTEENNTT__TTYYPPEE
Pass a pointer to a 'char *' to receive the con
tent-type of the downloaded object. This is the
value read from the Content-Type: field. If you
get NULL, it means that the server didn't send a
valid Content-Type header or that the protocol
used doesn't support this. (Added in 7.9.4)
RREETTUURRNN VVAALLUUEE
If the operation was successful, CURLE_OK is returned.
Otherwise an appropriate error code will be returned.
SSEEEE AALLSSOO
ccuurrll__eeaassyy__sseettoopptt(3)
BBUUGGSS
Surely there are some, you tell me!
libcurl 7.9.7 25 Apr 2002 curl_easy_init(3)